package com.fhz.kotlinmvvm.main

import com.fhz.kotlinmvvm.dao.GoodsDao
import com.fhz.kotlinmvvm.entity.Goods
import javax.inject.Inject

/**
 * 时间:2023/9/12
 * @author Mr.Feng
 * 简述: room
 */
class MainLocalDataSource @Inject constructor(val goodsDao: GoodsDao) {

    suspend fun insertGoods(goods: Goods){
        goodsDao.insertAll(goods)
    }

}